import Layout from '@/layout'
// 员工管理，动态路由，根据用户权限不一样不同的显示
const employeesRouter = {
  path: '/employees',
  component: Layout,
  children: [
    {
      name: 'employees',
      path: '', // 二级路由为空，表示当前路由为 默认路由 直接渲染对应组件
      component: () => import ('@/views/employees/index'),
      meta: { title: '员工', icon: 'people' }
    },
    {
      // 员工详情
      name: 'detail',
      path: 'detail',
      hidden: true,
      component: () => import ('@/views/employees/Detail')
    }
  ]
}

export default employeesRouter
